<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <title>
      Quick Fix and Quick Assist
    </title>
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
  </head>
  <body>
    <h1>
     Quick Fix and Quick Assist
    </h1>
    <p>
      For most problems underlined with a problem highlight line, the Java editor can offer corrections. This is shown by the light bulb shown in the editor marker bar.
    </p>
	<p>
    <img src="images/qs-37a.png"  alt="A Java editor indicating a quick-fixable problem with a light bulb in the editor marker bar"> <br>
	</p>
     To see the correction proposals use the Quick Fix action 
    <ul>
      <li>
        Set the cursor inside or near the highlight range, and select&nbsp;<strong>Quick Fix</strong> from the <a href="../reference/ref-menu-edit.htm">Edit menu</a> or the context menu.
      </li>
      <li>
        Set the cursor inside or near the highlight range, and press Ctrl + 1
      </li>
      <li>
        Click on the light bulb
      </li>
    </ul>
<p>Quick fix is also available on a problem entry in the Problems view. The Quick Fix action will open a dialog to select the correction.
<br>
    <br>
Note that the light bulb is only a hint. It is possible that even with the light bulb shown, it turns out that no corrections can be offered.<br>
A overview of quick fixes available in the Java editor can be found <a
	href="../reference/ref-java-editor-quickfix.htm">here</a>.<br>
	
	
	<br>Quick Assists are proposals available even if there is no problem or warning. They use the same short cut and action like Quick Fix. Quick assists
	are used for local code manipulations. See the <a
	href="../reference/ref-java-editor-quickassist.htm">Quick assist</a> reference for more information.</p>

<h3 class="related">Related Concepts</h3>
  <a href="../concepts/concept-java-editor.htm">Java editor</a>
<h3 class="related">Related References</h3>
  <a href="../reference/ref-java-editor-quickassist.htm">Quick assists</a><br>
  <a href="../reference/ref-java-editor-quickfix.htm">Quick fix</a><br>
  <a href="../reference/preferences/java/ref-preferences-editor.htm">Java editor preferences</a><br>
  <a href="../reference/ref-menu-edit.htm">Edit menu</a>
  </body>
</html>

